package com.woniuxy.classdeans.service.impl;

import com.woniuxy.classdeans.mapper.KonwledgeAnalyzeMapper;
import com.woniuxy.classdeans.service.KonwledgeAnalyzeService;
import com.woniuxy.commons.entity.AnswerSheet;
import com.woniuxy.commons.entity.SchoolInfo;
import com.woniuxy.commons.entity.ScoreLine;
import com.woniuxy.commons.entity.StudentInfo;
import com.woniuxy.commons.entity.wyh.GradeInfo;
import com.woniuxy.commons.entity.wyh.Knowledgepoint;
import com.woniuxy.commons.entity.wyh.SchoolAndScore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * @Author weizihan
 * @Date 2020/7/24 2020/7/24
 * @Description This is description of class
 * @Since version-1.0
 */
@Service
public class KonwledgeAnalyzeServiceImpl implements KonwledgeAnalyzeService {
    @Autowired
    private KonwledgeAnalyzeMapper konwledgeAnalyzeMapper;
    @Override
    public List<SchoolInfo> schoolAll() {
        return konwledgeAnalyzeMapper.schoolAll();
    }

    @Override
    public List<GradeInfo> semesterAll(String gradeType) {
        return konwledgeAnalyzeMapper.semesterAll(gradeType);
    }

    @Override
    public List<Knowledgepoint> knowledgesAll(String subject) {
        return konwledgeAnalyzeMapper.knowledgesAll(subject);
    }

    @Override
    public SchoolAndScore selectAll() {
        return null;
    }

    @Override
    public double findAnswerSheetByTimeAndGaids(AnswerSheet as) {
        return konwledgeAnalyzeMapper.findAnswerSheetByTimeAndGaids(as);
    }

    @Override
    public List<Integer> findGaIdBytmId(Integer gaId) {
        return konwledgeAnalyzeMapper.findGaidBytmId(gaId);
    }

    @Override
    public List<Integer> findStuidByClassIdAndSchoolId(StudentInfo studentInfo) {
        return konwledgeAnalyzeMapper.findStudentByClassIdAndSchoolId(studentInfo);
    }

    @Override
    public Double findStudentIdByScore(Integer sheetStudentNo) {
        return konwledgeAnalyzeMapper.findStudentIdByScore(sheetStudentNo);
    }

    @Override
    public StudentInfo findStudentIdByDate(StudentInfo studentInfo) {
        return konwledgeAnalyzeMapper.findStudentIdByDate(studentInfo);
    }

    @Override
    public Integer findStudentExamination(Integer beginyear) {
        return konwledgeAnalyzeMapper.findStudentExamination(beginyear);
    }

    @Override
    public List<ScoreLine> findScoreChart() {
        return konwledgeAnalyzeMapper.findScoreChart();
    }

    @Override
    public Set<Integer> findSidByStudentId(Integer sid) {
        return konwledgeAnalyzeMapper.findSidStudentId(sid);
    }

    @Override
    public Double findSidStudentScore(Integer s) {
        return konwledgeAnalyzeMapper.findSidStudentScore(s);
    }

    @Override
    public String findSchoolNameBySid(Integer sid) {
        return konwledgeAnalyzeMapper.findSchoolNameBySid(sid);
    }


}
